package com.cn.spring;

import org.dom4j.DocumentException;

import java.lang.reflect.InvocationTargetException;

public class HspSpringIOCTest {
    public static void main(String[] args) throws DocumentException,
            IllegalAccessException, InstantiationException, ClassNotFoundException, InvocationTargetException, NoSuchMethodException {
//得 到beans.xml 文 件.
        HspApplicationContext ioc = new HspApplicationContext("/Users/binming/Desktop/spring/hsp-myspring/src/main/resources/beans.xml");
        Monster monster01 = (Monster) ioc.getBean("monster01");
        System.out.println("ioc 的 monster01= " + monster01);
    }
}
